<!--{subtemplate shop/sub/header}-->
<!--{subtemplate shop/sub/navigation_left}-->
<div class="row">
    <div class="detail_left">
    	<div class="row">
        	<div class="detail_box">
            	<h4><i class="head_box_style"></i><!--{$profile_title}--></h4>
                <div class="form_store">
                	<form action="$actionUrl" method="post" onsubmit="return validate_form(this)" enctype="multipart/form-data">
                    	<fieldset>
                        	<legend><!--{lang trang_thai_gian_hang}--></legend>
                            <div class="fm-opt">
                            	<label for="verificationed"><!--{lang kich_hoat_gian_hang}--></label>
                                <!--{if ($_G['adminid'] == 1)}-->
                                <input type="hidden" name="groupid" value="20" />
                                <input type="checkbox" name="verificationed" id="verificationed" value="1" class="checkbox"<!--{if $gp['verify'] == 1} checked="checked"{/if}--> />
                                <!--{/if}-->
                                <!--{if $uData['verificationed']}{lang gian_hang_da_cap_phep}{else}{lang gian_hang_chua_duoc_cap_phep}{/if}-->
                            </div>
                            <!--{if ($_G['adminid'] == 1)}-->
                            <div class="fm-opt">
                                <label for="rate"><!--{lang danh_gia_gian_hang}--></label>
                                <select name="rate" id="rate">
                                	<!--{loop $stars $key}-->
                                    <option  value="$key"<!--{if $profile[rate] == $key} selected="selected"{/if}-->><!--{$key}{lang rate_star}--></option>
                                    <!--{/loop}-->
                                </select>
                        	</div>
                            <!--{/if}-->
                        </fieldset>
                        <fieldset>
                            <legend><!--{lang thong_tin_co_ban}--></legend>
                            <div class="fm-req">
                            	<label for="sid"><!--{lang danh_muc_san_pham}--></label>
                                <select name="sid" id="sid">
                                	<option value="0"><!--{lang chon_danh_muc_nganh_nghe}--></option>
                                    <!--{loop $sCat $key $value}-->
                                    <option value="$key"<!--{if $key == $profile['sid']} selected="selected"{/if}-->>&bull; $value</option>
                                    <!--{/loop}-->
                                </select>
                                <i id="sid_alert" class="{if $post_erro['sid']}chk_erro{/if}" style="display:none">{lang erro_categories}</i>
                            </div>
                            <div class="fm-req">
                                <label for="shopname"><!--{lang ten_gian_hang}--></label>
                                <input type="text" id="shopname" name='shopname' value='$profile['shopname']' validate="{'minlen':'3', 'maxlen':80}"<!--{if ($_G['adminid'] != 1)} disabled="disabled"{/if}--> />
                                <p id="shopname_alert" class="{if $post_erro['shopname']}chk_erro{/if}" style="display:none">{lang erro_shop_name}</p>
                            </div>
                            <div class="fm-req">
                                <label for="authorname"><!--{lang nguoi_so_huu}--></label>
                                <input type="text" name='authorname' id="authorname" value="$profile['authorname']" validate="{'minlen':'7','maxlen':'30'}" />
                                <p id="authorname_alert" class="{if $post_erro['authorname']}chk_erro{/if}" style="display:none">{lang erro_author_shop}</p>
                            </div>
                            <div class="fm-req">
                                <label for="cardid_number"><!--{lang so_cmnd}--></label>
                                <input type="text" name='cardid_number' id="cardid_number" class="input_s" value="$profile['cardid_number']" validate="{'minlen':'9','maxlen':'12','onlyNumber':'yes'}" />
                                <p id="cardid_number_alert" class="{if $post_erro['cardid_number']}chk_erro{/if}" style="display:none">{lang erro_CMND_number}</p>
                            </div>
                            <div class="fm-req">
                                <label for="reg_date_number"><!--{lang ngay_cap_cmnd}--></label>
                                <input type="text" name='reg_date_number' id="reg_date_number" class="input_s" value="$gp['reg_date_number']" maxlength="10" validate="{'minlen':'8','maxlen':'10'}" onkeyup="dtval(this,event);" />
                                <p id="reg_date_number_alert" class="{if $post_erro['reg_date_number']}chk_erro{/if}" style="display:none">{lang erro_reg_date_CMND_number}</p>
                            </div>
                            <div class="fm-req">
                                <label for="province"><!--{lang noi_cap_cmnd}--></label>
                                <select name="province" id="province">
                                <!--{loop $provice $key $value}-->
                                	<option value="$key"<!--{if ($profile['cardid_issuer'] == $key)} selected{/if}-->>$value['name']</option>
                                <!--{/loop}-->
                                </select>
                            </div>
                            <div class="fm-req">
                                <label for="profile_idcard"><!--{lang hinh_cmnd_scan}--></label>
                                <input id="profile_idcard" name="profile_idcard" type="file" />
                                <!--{if ($uData['profile_idcard'])}-->
                                <p><a href="javascript:;" onclick="zoom(this, '/$uData['profile_idcard']');"><img src="/static/image/common/album.gif" width="16" height="15" alt="Card" /><!--{lang xem_hinh_hien_tai}--></a></p>
                                <!--{/if}-->
                                <p id="profile_idcard_alert" class="{if $post_erro['profile_idcard']}chk_erro{/if}" style="display:none">{lang idcart_img_is_maxsize}</p>
								<p><!--{lang hinh_cmnd_scan_tips}--></p>
                            </div>
                            <!--{if ($_G['adminid'] == 1 && $uData['profile_idcard'])}-->
                            <div class="fm-opt">
                                <label for="delete_idcard"><!--{lang xoa_hinh_cmnd_scan}--></label>
                                <input type="checkbox" name="delete_idcard" id="delete_idcard" value="1" class="checkbox" />
                                <input type="button" id="del_card" value="<!--{lang xoa_hinh_scan}-->" class="input_s" />
                                <p><!--{lang hinh_cmnd_scan_khong_hop_le}--></p>
                            </div>
                            <!--{/if}-->
                        </fieldset>
                        <fieldset>
                            <legend><!--{lang thong_tin_lien_he_gian_hang}--></legend>
                            <div class="fm-req">
                                <label for="shopaddr"><!--{lang dia_chi_gian_hang}--></label>
                                <input type="text" id="shopaddr" name="shopaddr" value="$profile['shopaddr']" validate="{'minlen':'20','maxlen':'150'}" />
                                <p id="shopaddr_alert" class="{if $post_erro['shopaddr']}chk_erro{/if}" style="display:none">{lang erro_shopaddr_store}</p>
                            </div>
                            <div class="fm-req">
                                <label for="store_province"><!--{lang noi_ban_hang}--></label>
                                <select name="store_province" id="store_province">
                                <!--{loop $provice $key $value}-->
                                	<option value="$key"<!--{if ($profile['store_province'] == $key)} selected{/if}-->>$value['name']</option>
                                <!--{/loop}-->
                                </select>
                            </div>
                            <div class="fm-opt">
                                <label for="phonenumber"><!--{lang dien_thoai_cua_hang}--></label>
                                <input id="phonenumber" name="phonenumber" type="text" class="input_s" value="$profile['phonenumber']" />
                            </div>
                            <div class="fm-opt">
                                <label for="mobile"><!--{lang dien_thoai_di_dong}--></label>
                                <input id="mobile" name="mobile" type="text" class="input_s" value="$profile['mobile']" />
                            </div>
                            <div class="fm-opt">
                                <label for="otherphone"><!--{lang dien_thoai_khac}--></label>
                                <input id="otherphone" name="otherphone" type="text" class="input_s" value="$profile['otherphone']" />
                            </div>
                            <div class="fm-req">
                                <label for="email">Email</label>
                                <input id="email" name="email" type="text" value="$profile['email']" validate="{'email':'yes'}" />
                                <p id="email_alert" class="{if $post_erro['email']}chk_erro{/if}" style="display:none">{lang erro_email}</p>
                            </div>
                            <div class="fm-opt">
                                <label for="store_about"><!--{lang gioi_thieu_gian_hang}--></label>
                                <textarea name="store_about" id="store_about" cols="10" rows="5" wrap="off"><!--{$profile['store_about']}--></textarea>
                                <p><!--{lang store_about_tips}--></p>
                            </div>
                        </fieldset>
                        <fieldset>
                        	<legend><!--{lang tai_khoan_thanh_toan}--></legend>
                            <div class="fm-req">
                                <label for="bankid_issuer"><!--{lang ngan_hang}--></label>
                                <input id="bankid_issuer" name="bankid_issuer" type="text" value="$profile['bankid_issuer']" validate="{'minlen':'3','maxlen':'150'}" />
                                <p id="bankid_issuer_alert" class="{if $post_erro['bankid_issuer']}chk_erro{/if}" style="display:none">{lang erro_bank_name}</p>
                            </div>
                            <div class="fm-req">
                                <label for="bankid_user"><!--{lang chu_tai_khoan}--></label>
                                <input id="bankid_user" name="bankid_user" type="text" value="$profile['bankid_user']" validate="{'minlen':'8','maxlen':'50'}" />
                                <p id="bankid_user_alert" class="{if $post_erro['bankid_user']}chk_erro{/if}" style="display:none">{lang erro_master_card}</p>
                            </div>
                            <div class="fm-req">
                                <label for="bankid_number"><!--{lang so_tai_khoan_ngan_hang}--></label>
                                <input id="bankid_number" name="bankid_number" type="text" class="input_s" value="$profile['bankid_number']" validate="{'minlen':'9','maxlen':'15'}" />
                                <p id="bankid_number_alert" class="{if $post_erro['bankid_number']}chk_erro{/if}" style="display:none">{lang erro_bank_number}</p>
                            </div>
                            <div class="fm-opt">
                                <label for="payment_other"><!--{lang hinh_thuc_thanh_toan_khac}--></label>
                                <textarea name="payment_other" id="payment_other" cols="10" rows="5"><!--{$profile['payment_other']}--></textarea>
                                <p><!--{lang toi_da_255_ky_tu}--></p>
                            </div>
                        </fieldset>
                        <fieldset>
                        	<legend><!--{lang thong_tin_van_chuyen}--></legend>
                            <div class="fm-req">
                                <label for="deliveryinfor"><!--{lang hinh_thuc_van_chuyen}--></label>
                                <textarea name="deliveryinfor" id="deliveryinfor" cols="10" rows="5" wrap="off" validate="{'minlen':'8','maxlen':'200'}"><!--{$profile['deliveryinfor']}--></textarea>
                                <p id="deliveryinfor_alert" class="{if $post_erro['deliveryinfor']}chk_erro{/if}" style="display:none">{lang erro_deliveryinfor}</p>
                            </div>
                            <div class="fm-req">
                                <!--{subtemplate shop/store/seccheck}-->
                            </div>
                        </fieldset>
                        <div id="fm-submit" class="fm-req">
                        	<input type="hidden" name="submit" value="true" />
                        	<input type="submit" name="Submit" value="{lang cap_nhat_GH}" />
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="detail_right">
        <!--{subtemplate shop/store/store_menu}-->
    </div>
    <div class="clear"></div>
</div>
<!--{subtemplate shop/sub/footer}-->